package com.muti.handle;

import org.springframework.stereotype.Component;
import org.springframework.messaging.Message;
/**
 * Author:yang
 * Date:2024-03-05 21:52
 * 点对点处理器
 */
@Component
public class PointToPointHandle {

    public void handleMessage(Message<String> message) {
        // 处理点对点消息的逻辑
        System.out.println("point-to-point message: " + message.getPayload());
    }
}
